package com.reggie.mvp_demo.model;
import com.reggie.mvp_demo.bean.Event;
import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Query;

public class API {
    public final static String BASE_URL = "http://api.juheapi.com/japi/";
    public static final String DEF_CHATSET = "UTF-8";
    public static final int DEF_CONN_TIMEOUT = 30000;
    public static final int DEF_READ_TIMEOUT = 30000;
    public static String userAgent = "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.66 Safari/537.36";

    // //配置您申请的KEY
       public static final String APPKEY ="749876a3f53ac835a35cf1e73856436d";
    //
    public interface Service {
        @GET("toh")
        Observable<Event> getTodayEvent( @Query("key")String app_key,
                                         @Query("v") String version,
                                         @Query("month") int month,
                                        @Query("day") int day

        );
    }
}


